
#ifndef __INTERNAL_H__
#define __INTERNAL_H__

// definiens of base types
typedef signed int                      NaturalT;
typedef unsigned int                    UNaturalT;

typedef signed char                     Int8T;
typedef unsigned char                   UInt8T;

typedef signed short                    Int16T;
typedef unsigned short                  UInt16T;

typedef signed long                     Int32T;
typedef unsigned long                   UInt32T;

typedef signed long long                Int64T;
typedef unsigned long long              UInt64T;


typedef char                            CharT;

typedef wchar_t                         WCharT;

typedef void                            VoidT;

// alias types
typedef NaturalT                        IntT;
typedef UNaturalT                       UIntT;

typedef NaturalT *                      PIntT;
typedef UNaturalT *                     PUintT;

typedef Int32T *                        PInt32T;
typedef UInt32T *                       PUInt32T;

typedef NaturalT                        BoolT;
typedef NaturalT *                      PBoolT;

typedef UInt8T                          ByteT;
typedef UInt8T *                        PByteT;

typedef Int16T                          WordT;

typedef Int16T *                        PWordT;

typedef UInt32T                         DwordT;
typedef UInt32T                         DWordT;

typedef UInt32T *                       PDwordT;
typedef UInt32T *                       PDWordT;

typedef CharT *                         PCharT;

typedef const CharT *                   AStringT;

typedef WCharT *                        PWCharT;

typedef const WCharT *                  WStringT;

typedef VoidT *                         PVoidT;

typedef Int32T                          ErrorT;


typedef struct _PPP_LINKNODE  {
    IntT fd;
    struct pbuf *pbuf;
} PPP_LINKNODE;

#endif /* __INTERNAL_H__ */

